<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="http://apps.bdimg.com/libs/require.js/2.1.9/require.min.js"></script>
</head>
<body>
    
<script>
require.config({
    baseUrl: location.href.replace(/require-test\.html.*$/, "js/")
});
    require(['test']);
</script>

</body>
</html>